<?php 
class MW_Simplenews_CategoryController extends Mage_Core_Controller_Front_Action
{
	public function indexAction($id)
	{
		$this->loadLayout();

		$id = $this->getRequest()->getParams('id');
		$category = Mage::getModel('simplenews/category')->load($id)->getData();
		$this->getLayout()->getBlock('head')->setTitle($category['meta_title']);
		$this->getLayout()->getBlock('head')->setKeywords($category['meta_keywords']);
		$this->getLayout()->getBlock('head')->setDescription($category['meta_description']);
		$this->renderLayout();
	}
}

